package cn.itsource.basic.service;

import cn.itsource.basic.query.BaseQuery;
import cn.itsource.basic.util.PageList;

import java.util.List;

public interface IBaseService<T>{

    void add(T t);

    void remove(Long id);

    void update(T t);

    T queryById(Long id);

    List<T> queryAll();

    /*分页查询方法*/
    PageList<T> queryPage(BaseQuery query);

    void batchDelete(List<Long> ids);
}
